package com.gitee.kenewstar.migration.service.migration;

import com.gitee.kenewstar.migration.entity.CommonResult;
import com.gitee.kenewstar.migration.entity.JobCronTriggers;
import com.gitee.kenewstar.migration.entity.JobDetails;
import com.gitee.kenewstar.migration.entity.JobInfo;
import com.gitee.kenewstar.migration.entity.JobTriggers;

import java.util.List;
import java.util.Map;

/**
 * @author kenewstar
 */
public interface JobMigrationService {

    List<CommonResult> jobInfoMigration(List<String> jobCodeList, Long tenantId);

    void singleJobInfoMigration(JobInfo jobInfo,
                                Map<Long, Long> devAndUatExeIdMap,
                                Map<String, List<JobDetails>> jobDetailsMap,
                                Map<String, List<JobTriggers>> jobTriggersMap,
                                Map<String, List<JobCronTriggers>> jobCronTriggersMap);

    List<CommonResult> jobInfoMigration(List<JobInfo> jobInfoList);

}
